package com.wangzeqi.neihanduanzi.home.circle;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wangzeqi.neihanduanzi.R;
import com.wangzeqi.neihanduanzi.enter.EnterActivity;

/**
 * Created by dllo on 16/1/11.
 */
public class FragmentCircle extends Fragment implements View.OnClickListener {

    private Context context;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context = context;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.circle_fragment,null);
        view.findViewById(R.id.circle_btn).setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.circle_btn:
                Intent intent = new Intent(context, EnterActivity.class);
                getActivity().startActivity(intent);
                break;
        }
    }
}
